package com.cxxx.guns.modular.backend.dao;

import com.cxxx.guns.modular.backend.model.News;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 新闻表
 Mapper 接口
 * </p>
 *
 * @author cczhang
 * @since 2018-09-04
 */
public interface NewsMapper extends BaseMapper<News> {

    List<News> getList(@Param("title") String title, @Param("model") Integer model);
    //yyi
    List<News> getNewsIndex(int model);
    News selectNewsNext(int status,Date date);
    News selctNewsPrevious(int status,Date date);
}
